<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file= "../header.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>字段配置修改</title>
<link href="/css/becom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
    <form action="/field/update.do" method="post">
        <table width="100%">
            <tr>
              <td width="50%">columnName</td>
              <td>${bean.columnName }</td>
            </tr>
        
            <tr>
              <td>propertyName</td>
              <td>
                 <input name="propertyName"  id="propertyName" value="${bean.propertyName }" width="80%">
              </td>
            </tr>
            
            <tr>
              <td>valueType</td>
              <td>${bean.valueType.name }</td>
            </tr>
            
           <tr>
              <td>enumFlag</td>
              <td>
                 <select name="enumFlag" id="enumFlag">
				           <option value="0" 
				              <c:if test="${bean.enumFlag == 0}">
				                 selected
				              </c:if>
				           >false</option>
				           <option value="1"
				             <c:if test="${bean.enumFlag == 1}">
				                 selected
				              </c:if>
				           >true</option>
				   </select>
               
              </td>
            </tr>
            
            
            <tr>
              <td>enumTypeName</td>
              <td>
                 <input name="enumTypeName"  id="enumTypeName" value="${bean.enumTypeName }" width="80%">
              </td>
            </tr>
            
            
            <tr>
              <td>patternValue</td>
              <td>
                 <input name="patternValue"  id="patternValue" value="${bean.patternValue }" width="80%">
              </td>
            </tr>
            
            
            <tr>
              <td>defaultValue</td>
              <td>
                 <input name="defaultValue"  id="defaultValue" value="${bean.defaultValue }" width="80%">
              </td>
            </tr>
            
            
            <tr>
              <td>EnumScope</td>
              <td>
                  <select name="scope" id="scope">
				           <option value="0" 
				              <c:if test="${bean.scope.id == 0}">
				                 selected
				              </c:if>
				           >local</option>
				           <option value="1"
				             <c:if test="${bean.scope.id == 1}">
				                 selected
				              </c:if>
				           >global</option>
				           <option value="2"
				             <c:if test="${bean.scope.id == 2}">
				                 selected
				              </c:if>
				           >none</option>
				   </select>
              </td>
            </tr>
            
            
            <tr>
              <td colspan="2" align="center">
                 <input type="hidden" id="id" name="id" value="${bean.id }"/>
                  <input type="hidden" id="tableId" name="tableId" value="${bean.tableId }"/>
                 <input value="submit" type="submit" />
              </td>
            </tr>
        </table>
    </form>
</body>
</html>